﻿namespace AnyOffice.Model
{
    using System;

    public class FlowRunPrcData
    {
        protected object _deliverTime;
        protected int _flowPrcs;
        protected int _iD = -1;
        protected int _opFlag = 1;
        protected int _prcsFlag = 1;
        protected int _prcsId;
        protected object _prcsTime;
        protected int _runId;
        protected int _topFlag;
        protected string _userId = string.Empty;

        public DateTime DeliverTime
        {
            get
            {
                return (DateTime) this._deliverTime;
            }
            set
            {
                this._deliverTime = value;
            }
        }

        public bool DeliverTimeIsNull
        {
            get
            {
                return (this._deliverTime == null);
            }
            set
            {
                if (value)
                {
                    this._deliverTime = null;
                }
            }
        }

        public int FlowPrcs
        {
            get
            {
                return this._flowPrcs;
            }
            set
            {
                this._flowPrcs = value;
            }
        }

        public int ID
        {
            get
            {
                return this._iD;
            }
            set
            {
                this._iD = value;
            }
        }

        public int OpFlag
        {
            get
            {
                return this._opFlag;
            }
            set
            {
                this._opFlag = value;
            }
        }

        public int PrcsFlag
        {
            get
            {
                return this._prcsFlag;
            }
            set
            {
                this._prcsFlag = value;
            }
        }

        public int PrcsId
        {
            get
            {
                return this._prcsId;
            }
            set
            {
                this._prcsId = value;
            }
        }

        public DateTime PrcsTime
        {
            get
            {
                return (DateTime) this._prcsTime;
            }
            set
            {
                this._prcsTime = value;
            }
        }

        public bool PrcsTimeIsNull
        {
            get
            {
                return (this._prcsTime == null);
            }
            set
            {
                if (value)
                {
                    this._prcsTime = null;
                }
            }
        }

        public int RunId
        {
            get
            {
                return this._runId;
            }
            set
            {
                this._runId = value;
            }
        }

        public int TopFlag
        {
            get
            {
                return this._topFlag;
            }
            set
            {
                this._topFlag = value;
            }
        }

        public string UserId
        {
            get
            {
                return this._userId;
            }
            set
            {
                this._userId = value;
            }
        }
    }
}

